/**
 *  @file: ui.h
 *  @author: nwz
 *  @brief: 
 *  @date: 2024年8月7日
 * 
 */

#ifndef CODE_UI_SCREEN_UI_H_
#define CODE_UI_SCREEN_UI_H_
#ifdef __cplusplus
extern "C"{
#endif

#include <stdio.h>
#include "lvgl.h"

LV_FONT_DECLARE(ui_font_Cuyuan18);
LV_FONT_DECLARE(ui_font_Cuyuan20);
LV_FONT_DECLARE(ui_font_Cuyuan24);
LV_FONT_DECLARE(ui_font_Cuyuan30);
LV_FONT_DECLARE(ui_font_Cuyuan38);
LV_FONT_DECLARE(ui_font_Cuyuan48);
LV_FONT_DECLARE(ui_font_Cuyuan80);
LV_FONT_DECLARE(ui_font_Cuyuan100);
LV_FONT_DECLARE(ui_font_iconfont16);
LV_FONT_DECLARE(ui_font_iconfont24);
LV_FONT_DECLARE(ui_font_iconfont28);
LV_FONT_DECLARE(ui_font_iconfont30);
LV_FONT_DECLARE(ui_font_iconfont32);
LV_FONT_DECLARE(ui_font_iconfont34);
LV_FONT_DECLARE(ui_font_iconfont45);

typedef struct {
    void (*init)(void);
    void (*deinit)(void);
    lv_obj_t **page_obj;
} Page_t;


void  Page_Load(Page_t* page);
void  Page_Back();

//#define HW_BLE_Enable()
//#define HW_BLE_Disable()
//#define HW_MPU_Wrist_Enable()
//#define HW_MPU_Wrist_Disable()
//#define HW_LCD_Set_Light(val)
//#define HW_Power_Shutdown()
//#define ui_EnvTempValue			20
//#define ui_HRValue				30
//#define ui_EnvHumiValue			40
#define watch_version_major()	1
#define watch_version_minor()   0
#define watch_version_patch()	0

#include "screen/ui_SetPage.h"
#include "screen/ui_EnvPage.h"
#include "HWDataAccess.h"


#ifdef __cplusplus
}
#endif
#endif /* CODE_UI_SCREEN_UI_H_ */
